﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kaleta.Xna.Collision
{
    [Flags]
    public enum CollisionGroup : ulong
    {
        None = 0,
        P1Ships = 1,
        P1Shots = 2,
        A1Ships = 4,
        A1Shots = 8,

    }

    public static class CollisionGroupExtensions
    {
        public static bool HasFlag(this CollisionGroup item, CollisionGroup query)
        {
            return ((item & query) == query);
        }
    }
}
